package org.surelink.radius.middleware;


import org.surelink.radius.model.User;
import org.tinyradius.packet.AccessRequest;
import org.tinyradius.packet.RadiusPacket;

/**
 * 认证中间件，在认证过程中按照一定顺序插入执行
 * @author wangjuntao
 *
 */
public interface AuthMiddleware {
	
	/**
	 * 认证处理
     * @param user
	 * @param request
	 * @param response
	 * @return
	 * @throws Exception
	 */
	public RadiusPacket onAuth(User user,AccessRequest request, RadiusPacket response) throws Exception;

}
